//
//  SuccessViewController.m
//  DuoDian
//
//  Created by 张卓 on 2017/8/18.
//  Copyright © 2017年 bigcastcloudShop. All rights reserved.
//

#import "SuccessViewController.h"

@interface SuccessViewController ()
@property (weak, nonatomic) IBOutlet UIButton *finish;
@property (nonatomic,copy) NSString * desTitle;


@end

@implementation SuccessViewController

+(instancetype)sharedViewWithDes:(NSString*)des{
    SuccessViewController *successVC = [[UIStoryboard storyboardWithName:@"SuccessViewController" bundle:nil] instantiateViewControllerWithIdentifier:@"Success"];
    successVC.desTitle = des;
    return successVC;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.des.text = self.desTitle;
}
- (IBAction)FinishClickBtn:(id)sender {
    
    [self dismissViewControllerAnimated:YES completion:^{
        [[NSNotificationCenter defaultCenter] postNotificationName:@"disMiss" object:nil];
    }];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
